const fs = require("fs");

fs.writeFile(
  "./a.css",
  `
  p{
    color:red
  }
  `,
  (err) => {
    if (err === null) {
      console.log("success");
    } else {
      console.log("fail");
    }
  }
);

/* fs.readFile("./1.js", (err, data) => {
  if (err === null) {
    console.log(data.toString());
  } else {
    console.log(err.message);
  }
}); */
